/**
 *
 *
 */
package com.hk.yajin.utills.url;


/**
 * 接口_Url
 *
 * @author wl
 */
public class UrlConstants {

    /*亚劲api*/
     //public final static String YAJIN_APP_ADDRESS = "http://yajin.blogyuan.com";
    public final static String YAJIN_APP_ADDRESS = "http://notify.fxoperator.info";

    //public final static String YAJIN_APP_ADDRESS = "http://notify.fxoperator.info";
    /*获取验证码*/
    public final static String FUNCTION_GET_SMS_CODE = YAJIN_APP_ADDRESS + "/api/user.login/sendcode.html";
    /*注册*/
    public final static String FUNCTION_REGISTER = YAJIN_APP_ADDRESS + "/api/user.login/register.html";
    /*登陆*/
    public final static String FUNCTION_LOGIN = YAJIN_APP_ADDRESS + "/api/user.login/checklogin.html";
    /*观点列表*/
    public final static String FUNCTION_VIEW_PORINT_LIST = YAJIN_APP_ADDRESS + "/api/teacher_view/index";
    /*新闻列表*/
    public final static String FUNCTION_VIEW_NEWS_LIST = YAJIN_APP_ADDRESS + "/api/article/index";
    /*视频列表*/
    public final static String FUNCTION_VIEW_VIDEO_LIST = YAJIN_APP_ADDRESS + "/api/teacher_video/index";
    /*消息列表*/
    public final static String FUNCTION_VIEW_MESSAGE_LIST = YAJIN_APP_ADDRESS + "/api/mail/index.html";
    /*消息点赞，取消赞*/
    public final static String FUNCTION_VIEW_MESSAGE_ZAN = YAJIN_APP_ADDRESS + "/api/mail/like.html";
    /*获取金币*/
    public final static String FUNCTION_GET_USER_GOLD = YAJIN_APP_ADDRESS + "/api/user.gold/info.html";
    /*修改姓名*/
    public final static String FUNCTION_GET_CHANGE_NICK_NAME = YAJIN_APP_ADDRESS + "/api/user.profile/updateinfo.html";
    /*轮播*/
    public final static String FUNCTION_LUN_BO = YAJIN_APP_ADDRESS + "/api/ad/index";
    /*视频详情（带权限）*/
    public final static String FUNCTION_VIDEO_DETAIL = YAJIN_APP_ADDRESS + "/api/teacher_video/info";
    /*修改密码*/
    public final static String FUNCTION_UPDATE_PWD = YAJIN_APP_ADDRESS + "/api/user.profile/updatepassword.html";
    /*重置或者修改密码*/
    public final static String FUNCTION_REST_PWD = YAJIN_APP_ADDRESS + "/api/user.login/resetPassword.html";
    /*更新手机号*/
    public final static String FUNCTION_REST_PHONE = YAJIN_APP_ADDRESS + "/api/user.profile/updatemobile.html";
    /*上传头像*/
    public final static String FUNCTION_HEAD_IMAGE = YAJIN_APP_ADDRESS + "/api/user.profile/updateavatar.html";
    /*购买视屏*/
    public final static String FUNCTION_BUY_VIDEO = YAJIN_APP_ADDRESS + "/api/user.teacher_video/buy.html";
    /*获取教师系列视频*/
    public final static String FUNCTION_LOAD_SERIES_VIDEO = YAJIN_APP_ADDRESS + "/api/teacher_video/series";
    /*购买系列视频（订阅老师）*/
    public final static String FUNCTION_BUY_SERIES_VIDEO = YAJIN_APP_ADDRESS + "/api/user.teacher/subscribe.html";
    /*首页*/
    public final static String FUNCTION_INDEX = YAJIN_APP_ADDRESS + "/api/index/index";
    /*可订购消息列表*/
    public final static String FUNCTION_MESAGE_TYPE_LIST = YAJIN_APP_ADDRESS + "/api/mail_class/index.html";
    /*订阅消息*/
    public final static String FUNCTION_BUY_MESSAGE = YAJIN_APP_ADDRESS + "/api/mail_class/buy.html";
    /*提交意见反馈*/
    public final static String FUNCTION_SUBMIT_ADVICE = YAJIN_APP_ADDRESS + "/api/feedback/index";
    /*我购买的单视频*/
    public final static String FUNCTION_MY_SINGL_VIDEOLIST = YAJIN_APP_ADDRESS + "/api/user.teacher_video/index.html";
    /*我订购的老师旗下的所有系列*/
    public final static String FUNCTION_MY_SERIER_LIST = YAJIN_APP_ADDRESS + "/api/user.teacher_video/series.html";
    /*所有商品（金币）*/
    public final static String FUNCTION_ALL_GOODS = YAJIN_APP_ADDRESS + "/api/gold_products/index";
    /*获取地区配置*/
    public final static String FUNCTION_GET_AREA_CONFIG = YAJIN_APP_ADDRESS + "/api/config/index.html";
    /*绑定邀请人*/
    public final static String FUNCTION_GET_INVATE_CODE_SUBMIT = YAJIN_APP_ADDRESS + "/api/user.invite/bindInviter";

    public static String getTotalImageUrl(String st) {
        String url = st;

        if (url.contains("http") || url.contains("HTTP")) {
            return url;
        } else {
            return UrlConstants.YAJIN_APP_ADDRESS + url;
        }

    }
}
